import presetWeapp from "unocss-preset-weapp";
import {
  extractorAttributify,
  transformerClass,
} from "unocss-preset-weapp/transformer";

const { presetWeappAttributify, transformerAttributify } =
  extractorAttributify();

export default {
  presets: [
    // https://github.com/MellowCo/unocss-preset-weapp
    presetWeapp(),
    // attributify autocomplete
    presetWeappAttributify(),
  ],
  shortcuts: [
    {
      "box-s": "box-border",
      fc: "flex items-center justify-center",
      fra: "flex flex-row flex-items-center",
      fre: "flex flex-row flex-items-end",
      "def-bg": "bg-#00BD78",
      "def-c": "c-#00BD78",
      "def-c-0c": "c-#000c",
      "text-now": " overflow-hidden whitespace-nowrap text-ellipsis",
      "def-86": "c-#86909c",
      fcb:"flex flex-col justify-between",
      frb:"flex justify-between"
    },
  ],

  transformers: [
    // https://github.com/MellowCo/unocss-preset-weapp/tree/main/src/transformer/transformerAttributify
    transformerAttributify(),

    // https://github.com/MellowCo/unocss-preset-weapp/tree/main/src/transformer/transformerClass
    transformerClass(),
  ],
};
